package com.bilibili.movies.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bilibili.movies.entity.UserCollection;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LBy
 * @since 2024-06-06
 */
@Mapper
public interface UserCollectionMapper extends BaseMapper<UserCollection> {

    @Delete("delete from user_collection where user_id= #{userId} and movie_id=#{movieId}")
    public void deleteByuserIdAndmovieId(Integer userId,Integer movieId);
}
